package base.staticfinal;public class FinalDemo {   //extends final    public static void main(String[] args) {        Final f = new Final();        f.what();        f.print();    }}final class Final {    final String str = "final Data";    public String str1 = "non final data";    final public void print() {        System.out.println("final method.");    }    public void what() {        System.out.println(str + "\n" + str1);    }}